package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.api.shopapi.entity.NursingLevel;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NursingLevelService {
    int  insert(NursingLevel nursingLevel);

    int updateByNursingLevelCode(NursingLevel nursingLevel);

    int deleteByNursingLevelCode(String nursingLevelCode);

    PageInfo<NursingLevel> getPageInfo(int pageIndex, int pageSize, String institutionCode,String name, int status);

    NursingLevel getByNameAndInstitutionCode(String name, String institutionCode);

    NursingLevel getByNursingLevelCode(String nursingLevelCode);

    List<NursingLevel> getList(String institutionCode);

    int insertLeveLAndItem(NursingLevel nursingLevel, JSONArray itemCodeArr);

    int updateByNursingLevelAndNursingItem(NursingLevel nursingLevel, JSONArray itemCodeArr);


    PageInfo<NursingLevel> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
